<div id="page">
<div class="page-title" style="z-index: 780;">
	<div class="in" style="z-index: 770;">
			<div class="titlebar" style="z-index: 760;">	<h2>Edit Domain</h2> <p>Update domain info</p></div>
			<div class="clear" style="z-index: 740;"></div>
	</div>
</div>

<div class="content" style="z-index: 730;">
<?php
if($error && !empty($error_msg)){
?>
<div class="albox errorbox" style="z-index: 670;">
	<ul>
<?php
	foreach($error_msg as $err){
		echo "<li>$err</li>";
	}
	echo '</ul><a class="close tips" href="#" original-title="close">close</a></div>';
}
elseif($msg != ''){
?>
<div class="albox succesbox" style="z-index: 690;">
	<b>Success :</b> <?php echo $msg; ?>. 
	<a class="close tips" href="#" original-title="close">close</a>
</div>
<?php
}
?>
<div class="simplebox grid740" style="z-index: 720;">
		<div class="titleh" style="z-index: 710;">
			<h3>Add Domain form</h3>
		</div>
		<div class="body" style="z-index: 690;">
		
		  <form action="" method="post" name="form2" id="form2">
		  	<div class="st-form-line" style="z-index: 680;">	
				<span class="st-labeltext">Domain Name</span>	
				<input type="text" style="width:300px" id="name" class="st-forminput" name="name" value="<?php echo $domainInfo['name'] ?>"> 
			<div class="clear" style="z-index: 670;"></div>
			</div>
		  	<div class="st-form-line" style="z-index: 680;">	
				<span class="st-labeltext">Supplier</span>	
				<input type="text" style="width:300px" id="supplier" class="st-forminput" name="supplier" value="<?php echo $domainInfo['supplier'] ?>"> 
			<div class="clear" style="z-index: 670;"></div>
			</div>
            
            <div class="st-form-line" style="z-index: 680;">	
				<span class="st-labeltext">Account</span>	
				<input type="text" style="width:300px" id="account" class="st-forminput" name="account" value="<?php echo $domainInfo['account'] ?>"> 
			<div class="clear" style="z-index: 670;"></div>
			</div>
            
            <div class="st-form-line" style="z-index: 660;">	
				<span class="st-labeltext">Email</span>	
				<input type="text" style="width:300px" id="mail" class="st-forminput" name="mail" value="<?php echo $domainInfo['mail'] ?>"> 
			<div class="clear" style="z-index: 650;"></div>
			</div>
			
           
		  	<div class="st-form-line" style="z-index: 660;">	
				<span class="st-labeltext">User buy</span>	
				<input type="text" style="width:300px" id="user" class="st-forminput" name="user" original-title="Domain User buy" value="<?php echo $domainInfo['user'] ?>"> 
			<div class="clear" style="z-index: 650;"></div>
			</div>	
            
            
            <div class="st-form-line" style="z-index: 680;">	
				<span class="st-labeltext">Expires</span>	
				<input type="text" style="width:300px" id="end_date" class="st-forminput" name="end_date" value="<?php echo $domainInfo['end_date'] ?>"> (ex: 2012-09-22)
			<div class="clear" style="z-index: 670;"></div>
			</div>			
			
			<!-- This is uniform selectbox - view this item class -->
			<div class="st-form-line" style="z-index: 640;">	<span class="st-labeltext">Status</span>	
			<div id="uniform-select1">
			<select id="select1" name="status">
			  <option value="0">Off</option>
			  <option value="1"<?php if($domainInfo['status'] == 1) echo ' selected'; ?>>On</option>
			</select>
			</div>
				<div class="clear" style="z-index: 630;"></div> 
			</div>
			
            <div class="st-form-line" style="z-index: 640;">	<span class="st-labeltext">Domain off</span>	
			<div id="uniform-select1">
			<select id="select1" name="closed">
			  <option value="0">Open</option>
			  <option value="1"<?php if($domainInfo['closed'] == 1) echo ' selected'; ?>>Close</option>
			</select>
			</div>
				<div class="clear" style="z-index: 630;"></div> 
			</div>
            
			<div class="button-box" style="z-index: 460;">
			  <input type="submit" class="st-button" value="Submit" id="button" name="button">
			  <input type="reset" class="st-clear" value="Reset" id="button2" name="button">
			</div>		

		  </form>
		  
		</div>
	</div>
</div>
</div>